public class J03yunsuan {
    public static void main(String[] args) {
        /*
        byte a = 1;
        // 1，小范围和大范围一起运算，小的会自动专成大的
        byte b = a + 1;
        */

        byte a = 1;
        byte b = 1;
        // 2，小于int的数据，运算的时候，会自动转成int
        byte c = (byte)(a + b);
    }
}

class CharTest{
    public static void main(String[] args) {
        //char
        String s = "abc";

        char c1 = 'a';
        System.out.println("c1 = " + c1);//a
        char c2 = '\n';
//        char c3 = 'abc';

        char ca = 97;
        System.out.println("ca = " + ca);//字符

        char cx = 99;//a97 b98 c99
        System.out.println("cx = " + cx);//c

        char cy = 48;
        System.out.println("cy = " + cy);//0


        System.out.println(0x62);//a
        System.out.println((char) 0x62);//b
        /*
        汉字
        a  b  c ... z


         */

        System.out.println('你');
        //
        System.out.println((int)'你');

        /*
        a  1
        你  2
         */

    }
}
